<html>
<head><meta charset="utf-8"><title>miri and aligned slice · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/miri.20and.20aligned.20slice.html">miri and aligned slice</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="231067281"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/miri%20and%20aligned%20slice/near/231067281" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Soveu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/miri.20and.20aligned.20slice.html#231067281">(Mar 19 2021 at 18:15)</a>:</h4>
<p>Someone knows why miri complains about this code?<br>
<a href="https://play.rust-lang.org/?version=nightly&amp;mode=release&amp;edition=2018&amp;gist=fc791324a928b87757ada49ef21d44f2">https://play.rust-lang.org/?version=nightly&amp;mode=release&amp;edition=2018&amp;gist=fc791324a928b87757ada49ef21d44f2</a></p>



<a name="231076991"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/miri%20and%20aligned%20slice/near/231076991" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Soveu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/miri.20and.20aligned.20slice.html#231076991">(Mar 19 2021 at 19:23)</a>:</h4>
<p>found the issue: the wrapper has size in multiple of 8 (so <code>size_of_val % align_of_val == 0</code>)<br>
the inner slice doesnt have to do with anything</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>